<?php
namespace api\web\model;

use think\Model;
use think\model\relation\HasOne;

class titleModel extends Model
{

    protected $name = 'zhongcantitle';

    public function title()
    {
        return $this->hasOne(titleModel::class,'part_id','id');
    }
}